package com.example.education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.education.Bean.CollegeInfo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 姚
 * @since 2023-03-27
 */
public interface CollegeInfoService extends IService<CollegeInfo> {

    //增
    int insert(CollegeInfo collegeInfo);

    //删
    int delete(Integer uid);

    //改
    int update(CollegeInfo collegeInfo);

    //查
    CollegeInfo select(String username);

    //统计最受欢迎的前十个大学
    CollegeInfo[] selectTopTen();

    //查询所有大学
    CollegeInfo[] selectAll();
}
